/*test组件:MagicalCoder参考lib\mc\magicalcoder.js 闭包的写法有利于内部变量不随意暴漏出去*/
(function(){
    MagicalCoder.install({
        /*处理环境变量application-env.js*/
        changeEnv:function(appEnv){
//            appEnv.env.constant.settings.cache.enable=false;
            appEnv.env.security.activeUrl = CommonUtil.serverName()+"/magical_lowcode/server/drag-active";
            appEnv.env.security.random = "666456789012345678901234567890123888";
        },
        changeConstant:function(constant){
            var workground = $(".magicalcoder-workground");
            var width = 0;
            if(workground.length>0){
                width = workground.width();
            }
            constant.responsiveList =
            [
                {id:"xs",name:"手机",width:"320px",height:"100%",icon:"assets/drag/img/header/phone1.png"},
                {id:"sm",name:"手机到平板",width:(width<768?"100%":"768px"),height:"100%",icon:"assets/drag/img/header/paid1.png"},
                {id:"md",name:"平板",width:(width<992?"100%":"992px"),height:"100%",icon:"assets/drag/img/header/notebook2.png"},
                {id:"lg",name:"笔记本",width:(width<1200?"100%":"1200px"),height:"100%",icon:"assets/drag/img/header/pc1.png"},
                {id:"xl",name:"电脑",width:"100%",height:"100%",icon:"assets/drag/img/header/pc1.png",checked:true}
            ]
        }
    });
})();
